﻿using System.Net.Http.Headers;
using ModernHttpClient;

namespace HalalCheck.Utils.HttpClient
{
   public class WebClient
    {
        private static System.Net.Http.HttpClient _baseClient;

       public static System.Net.Http.HttpClient GetClient()
       {
           _baseClient = new System.Net.Http.HttpClient(new NativeMessageHandler());
           _baseClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
           _baseClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("text/html"));     
           return _baseClient; 
       }
    }
}
